/**
 *  \file   xmac_rx.h
 *  \author Miora ANDRIAMANOHARISOA, Loic MINGHETTI
 *  \date   PFE 2011
 *  \desc	Received thread and protocol setup
 **/

void xmac_rx_init();

PT_THREAD(thread_xmac_rx(struct pt *pt));

extern uint8_t rx_buffer_msg[];
extern int rx_buffer_rssi;
extern char rx_buffer_flag;

void xmac_listen_start ();
void xmac_listen_stop ();
